<template>
  <el-select v-model="city">
<!--  label设置看到的内容  value设置得到的内容  -->
    <el-option label="北京" value="bj"></el-option>
    <el-option label="上海" value="sh"></el-option>
    <el-option label="广州" value="gz"></el-option>
  </el-select>
  <h3>您选择的城市是:{{city}}</h3>
</template>

<script setup>
  import {ref} from "vue";

  const city = ref('');
</script>

<style scoped>

</style>